﻿@model IList<Admin.Models.ProductModel>

   
@{
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

    <div class="formtable" style="width: 900px; margin-left: 50px;">
    <table class="table table-hover">
        <thead>
            <tr style="color:red;">
                <th>Mã Sản Phẩm</th>
                <th>Tên Sản Phẩm</th>
                <th>Giá Sản Phẩm</th>
                <th></th>
                <th></th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            @foreach (var id in Model)
            {
                <tr>
                    <th>@id.MASP</th>
                    <th>@id.TENSP</th>
                    <th>@id.GIA</th>

                    <th><span class="glyphicon glyphicon-edit" style="margin:0 auto;"></span></th>
                    <th>@Html.ActionLink("Edit", "editProduct", new { id = @id.MASP })</th>
                    <th>@Html.ActionLink("Delete", "deleteProduct", new { id = @id.MASP })</th>

                </tr>
            }
        </tbody>
    </table>
    <ul class="pagination"></ul>
</div>


    
